projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0dcaf0
)
(view-mode-enable): Add view-mode-map to
author
Andreas Schwab
<schwab@suse.de>
Fri, 6 Feb 2004 21:41:22 +0000
(21:41 +0000)
committer
Andreas Schwab
<schwab@suse.de>
Fri, 6 Feb 2004 21:41:22 +0000
(21:41 +0000)
minor-mode-overriding-map-alist.
lisp/view.el
patch
|
blob
|
history
diff --git
a/lisp/view.el
b/lisp/view.el
index 1ee6014c73a12e7e7afa508f28b850b9097b145d..6d7ad4aa468bc763643c32b8bd5d28eff1a99f26 100644
(file)
--- a/
lisp/view.el
+++ b/
lisp/view.el
@@
-463,6
+463,9
@@
Entry to view-mode runs the normal hook `view-mode-hook'."
(if (buffer-file-name)
(file-name-nondirectory (buffer-file-name))
(buffer-name))))
+ ;; Override major mode's scrolling commands.
+ (add-to-list 'minor-mode-overriding-map-alist
+ (cons 'view-mode view-mode-map))
(force-mode-line-update)
(run-hooks 'view-mode-hook))